﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ComputerResourceConsole.lib;
using ComputerResourceConsole.common;

namespace ComputerResourceConsole.model
{
    public class ModelServiceDebuggerOpera: ComponentOperaBase, IModelServiceDebuggerOpera
    {
        private string _host;
        private int _port;
        private string _instanceID;
        private string _dataConfigPath;
        private string _mdlPath;

        public ModelServiceDebuggerOpera()
        {
            this._host = "127.0.0.1";
            this._port = 6002;
            this._instanceID = "3667daec-e545-4d00-9f05-6fcff7e16c85";
        }

        public override string Arguments
        {
            get
            {
                return CommonMethod.getAppDirection() + "/GeoModelServiceContainer/debug.js " + this._host + " " + this._port.ToString() + " " + this._instanceID + " " + this._dataConfigPath + " " + this._mdlPath;
            }
        }

        public string Host
        {
            get
            {
                return this._host;
            }
            set
            {
                this._host = value;
            }
        }

        public int Port
        {
            get
            {
                return this._port;
            }
            set
            {
                this._port = value;
            }
        }

        public string InstanceID
        {
            get
            {
                return this._instanceID;
            }
            set
            {
                this._instanceID = value;
            }
        }

        public string DataConfigPath
        {
            get
            {
                return this._dataConfigPath;
            }
            set
            {
                this._dataConfigPath = value;
            }
        }

        public string MDLPath
        {
            get
            {
                return this._mdlPath;
            }
            set
            {
                this._mdlPath = value;
            }
        }
    }
}
